﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using B10.Helpers;
using Resources;

namespace B10.Models
{
    public enum PagesSortOrder
    {
        Newest,
        TopDay,
        TopWeek,
        TopMonth,
        TopAll
    }

    public class PageListViewModel
    {
        public PageListViewModel(PaginatedList<UserPage> pages)
        {
            Pages = pages;
        }

        //public PageListViewModel(PaginatedList<UserPage> pages,IQueryable<UserPage> additionalPages)
        //    :this(pages)
        //{
        //    AdditionalPages = additionalPages.ToList();
        //}
        
        //public List<UserPage> AdditionalPages { get; private set; }

        public PaginatedList<UserPage> Pages { get; private set; }

        public static string GetSortOrderName(PagesSortOrder order)
        {
            return PropertyDisplayNames.ResourceManager.GetString(
                    Enum.GetName(typeof(PagesSortOrder), order));
        }
    }
}
